<template>
	<view class="sub-form-slot">
		<view class="index">＃&nbsp;{{ idx + 1 }}</view>
		<view class="slot">
			<slot></slot>
		</view>
	</view>
</template>
<script>
export default {
	props: {
		idx: {
			type: Number,
			default: 0
		}
	}
}
</script>
<style scoped>
.sub-form-slot {
	width: 100%;
	position: relative;
}
.index {
	width: 100%;
	height: 60rpx;
	background-color: #f5f7fa;
	color: #666666;
	line-height: 60rpx;
	padding-left: 25rpx;
	box-sizing: border-box;
}
.slot {
	width: 100%;
}
</style>